cmake_minimum_required (VERSION 2.6)
set(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX
    #Comment out that line if you do not want use static runtime linking
   ${CMAKE_CURRENT_SOURCE_DIR}/cxx_flag_overrides.cmake)
project (FolderProtector)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
find_package(wix)

SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
SET(CMAKE_CXX_FLAGS "-D UNICODE -D _UNICODE -D_WIN32_WINNT=0x501")

SET(ENV{PATH} "$ENV{PATH};E:/BuildFiles/wxWidgets-2.8.11/")
SET(wxWidgets_ROOT_DIR "E:/BuildFiles/wxWidgets-2.8.11")
SET(wxWidgets_LIB_DIR "E:/BuildFiles/wxWidgets-2.8.11/lib/vc_lib")

find_package(wxWidgets COMPONENTS core base adv REQUIRED)

include(${wxWidgets_USE_FILE})

add_subdirectory(DriverInstaller)
add_subdirectory(ProtectorDriver)
add_subdirectory(ProtectorGui)
add_subdirectory(Setup)
